package com.hejing.初识异常;

/**
 * ClassName: ErrorTest
 * Package: com.hejing.初识异常
 * Description:
 *
 * @Author: HeJing
 * @Create: 2023-04-07 23:23
 * @Version: 1.0
 */
public class ErrorTest {
    public static void main(String[] args) {

        // 举例1: StackOverflowError 栈内存溢出
        // main(args);

        // 举例2: OutOfMemoryError 堆内存溢出
        // byte[] arr = new byte[1024* 1024 * 1024];  // 1GB

    }
}




























